package com.wxx.aspect;

import org.apache.log4j.Logger;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class LoggerAspect {

	private static Logger logger = Logger.getLogger(LoggerAspect.class);

	@Pointcut("execution(* com.wxx.service.*.*(..))")
	private void selectAll(){}
	
	//@AfterReturning(value = "execution(* com.wxx.service.C1ServiceImpl.*(..))", returning = "args")
	@Before("selectAll()")
	public void before() {

		logger.info("@AfterReturning进来了");
		System.out.println("@AfterReturning进来了");

	}
}
